package sfmc.biz.daoImpl;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import sfmc.biz.dao.SfmcCountStatusDao;
import sfmc.biz.vo.Sfmc_TB_STATUS;

@Repository("SfmcCountStatusDao")
public class SfmcCountStatusDaoImpl implements SfmcCountStatusDao{
	
	protected Log log = LogFactory.getLog(this.getClass());
	
	@Autowired
	private SqlMapClientTemplate sqlMapClientTemplate;
	   
	public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) {
		this.sqlMapClientTemplate = sqlMapClientTemplate;
	}

	@Override
	public List<Sfmc_TB_STATUS> getDaillyStatusList(Sfmc_TB_STATUS dto) {		
		return sqlMapClientTemplate.queryForList("getDailyStatus",dto);
	}

	@Override
	public List<Sfmc_TB_STATUS> getWeeklyStatusList(Sfmc_TB_STATUS dto) {
		return sqlMapClientTemplate.queryForList("getWeeklyStatus",dto);
	}

	@Override
	public List<Sfmc_TB_STATUS> getMonthlyStatusList(Sfmc_TB_STATUS dto) {
		
		return sqlMapClientTemplate.queryForList("getMonthlyStatus",dto);
	}

	@Override
	public List<Sfmc_TB_STATUS> getYearlyStatusList(Sfmc_TB_STATUS dto) {		
		return sqlMapClientTemplate.queryForList("getYearlyStatus",dto);
	}

}
